package com.dlnu.sujiwords.domain.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class EnWords {
    /*单词*/
    private String word;
    /*翻译*/
    private String translation;
    /*单词id*/
    private int id;

    public EnWords(String word, String translation) {
        this.word = word;
        this.translation = translation;
    }

    @Override
    public String toString() {
        return "word:\t"+word+"\ttranslation\t"+translation+"\n";
    }
}
